<!DOCTYPE html>
<!-- 删除下拉菜单中的“美工 1班”
 -->
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script type="text/javascript">
	function deleteOption() {
		var aNode = document.getElementById("class");
		var aParentNode = aNode.parentNode;
		aParentNode.removeChild(aNode);
	}
</script>
</head>
<body>
	<select>
		<option>PHP1班</option>
		<option id="class">美工1班</option>
	</select>
	<input type="button" onclick="deleteOption()" value="删除">
</body>
</html>